class AppleState implements FruitState {
    @Override
    public Fruit create() {
        return new Apple();
    }
}

class BananaState implements FruitState {
    @Override
    public Fruit create() {
        return new Banana();
    }
}